package com.hmall.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.item.pojo.Item;
import org.apache.ibatis.annotations.Update;

import java.util.Date;

public interface ItemMapper extends BaseMapper<Item> {
    @Update("update tb_item set status=2,update_time=#{date} where id=#{id}")
    void down(Long id, Date date);

    @Update("update tb_item set status=1,update_time=#{date} where id=#{id}")
    void up(Long id, Date date);


}
